package com.biz.primus.ms.member.trans;

import com.biz.primus.model.member.vo.MemberSecretQuestionVo;
import com.biz.primus.ms.member.dao.ro.MemberSecretQuestionRo;
import com.google.common.base.Function;
import org.springframework.beans.BeanUtils;

/**
 * ro转vo
 * @author jun.liu
 * @date 2017年10月23日
 * @reviewer
 * @see
 */
public class MemberSecretQuestionRoToMemberSecretQuestionVo implements Function<MemberSecretQuestionRo, MemberSecretQuestionVo> {

    @Override
    public MemberSecretQuestionVo apply(MemberSecretQuestionRo ro) {
        MemberSecretQuestionVo vo = new MemberSecretQuestionVo();
        if (ro != null) {
            BeanUtils.copyProperties(ro, vo);
        }
        return vo;
    }
}
